package com.greate.community.entity.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class AddCommentDTO {

    @NotBlank(message = "评论不能为空")
    @Size(max = 1000, message = "内容太长")
    private String content;

    private List<String> picUrls;

    @NotNull
    private Integer parentId;

    @NotNull
    private Integer rootId;

    @NotNull
    private Integer postId;

    @NotNull
    private Integer parentUserId;
}
